
<!DOCTYPE html>
<html lang='zh-cn'>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>编辑BugBUG #357 提交错误 - 企业内部工时管理系统 - 禅道</title>
    <script>window.config={"webRoot":"\/","debug":0,"appName":"","cookieLife":30,"requestType":"PATH_INFO","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/theme\/","currentModule":"bug","currentMethod":"edit","clientLang":"zh-cn","requiredFields":"title,openedBuild","router":"\/index.php","save":"\u4fdd\u5b58","runMode":"","timeout":30000,"pingInterval":""};
    window.lang={"submitting":"\u7a0d\u5019...","save":"\u4fdd\u5b58","expand":"\u5c55\u5f00\u5168\u90e8","timeout":"\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\uff0c\u6216\u91cd\u8bd5\uff01"};

    </script>
    <script>config.onlybody = "no";</script><script src='/js/all.js?v=12.5.3'></script>
    <link rel='stylesheet' href='../../../css/zh-cn.default.css?v=12.5.3' type='text/css' media='screen' />
    <style>.ke-toolbar .ke-outline[data-name='savetemplate'] {display: none}
    #modulemenu .nav #dropMenu #searchResult .closed{text-decoration:none;}
    .nav #moreMenus{cursor: pointer;}

    #batchCreateForm .input-group, #batchEditForm .input-group,
    #batchCreateForm .input-group .form-control, #batchEditForm .input-group .form-control {position: static;}
    #batchCreateForm .input-group .colorpicker, #batchEditForm .input-group .colorpicker {z-index: 2;}
    #batchCreateForm .input-group .colorpicker.open, #batchEditForm .input-group .colorpicker.open {z-index: 5;}
    .col-side .chosen-container .chosen-drop {width: 216px!important}
    .col-side .chosen-container {width: 218px!important}
    .col-side .chosen-container[id^="openedBuild"] {width: 172px!important}
    .col-side .chosen-container[id^="resolvedBuild"] {width: 172px!important}
    .chosen-choices li.search-choice{word-break: break-all;}
    #linkBugBox > li {margin-left:-56px}
    .thWidth{width:80px !important;}
    </style><link rel='icon' href='/favicon.ico' type='image/x-icon' />
    <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />
    <!--[if lt IE 9]>
    <script src='/js/html5shiv/min.js?v=12.5.3'></script>
    <script src='/js/respond/min.js?v=12.5.3'></script>
    <![endif]-->
    <!--[if lt IE 10]>
    <script src='/js/jquery/placeholder/min.js?v=12.5.3'></script>
    <![endif]-->
</head>
<body>
<style>
    .picker-single .picker-selection-remove{z-index: 1000;}
    .picker-selection-single:after, .picker-multi.picker-focus .picker-selections:before{font-family: ZentaoIcon !important; content: '\f0d7' !important;}
</style>
<script>
    var chooseUsersToMail = '选择要发信通知的用户...';
    if($.fn.picker)
    {
        $(document).ready(function()
        {
            $(".picker-select[data-pickertype!='remote']").picker({chosenMode: true});
            $("[data-pickertype='remote']").each(function()
            {
                var pickerremote = $(this).attr('data-pickerremote');
                $(this).picker({chosenMode: true, remote: pickerremote});
            })
        });
    }
</script>
<header id='header'>
    <div id='mainHeader'>
        <div class='container'>
            <hgroup id='heading'>
                <h1 id='companyname' title='易软天创'><a href='/index.html' >易软天创</a>
                </h1>
            </hgroup>
            <nav id='navbar'><ul class='nav nav-default'>
                <li  data-id='my'><a href='/my/' ><span> 我的地盘</span></a></li>
                <li  data-id='product'><a href='/product-index-no.html' >产品</a></li>
                <li  data-id='project'><a href='/project-index-no.html' >项目</a></li>
                <li class='active' data-id='qa'><a href='/qa/' class='active'>测试</a></li>
                <li class='divider'></li><li  data-id='doc'><a href='/doc/' >文档</a></li>
                <li  data-id='report'><a href='/report/' >统计</a></li>
                <li class='divider'></li><li  data-id='company'><a href='/company/' >组织</a></li>
                <li  data-id='admin'><a href='/admin/' >后台</a></li>
            </ul>
            </nav>
            <div id='toolbar'>
                <div id="userMenu">
                    <div id='searchbox'><div class='input-group'><div class='input-group-btn'><a data-toggle='dropdown' class='btn btn-link'><span id='searchTypeName'>Bug</span> <span class='caret'></span></a><input type='hidden' name='searchType' id='searchType' value='bug'  />
                        <ul id='searchTypeMenu' class='dropdown-menu'><li class='selected'><a href='javascript:$.setSearchType("bug");' data-value='bug'>Bug</a></li><li ><a href='javascript:$.setSearchType("story");' data-value='story'>需求</a></li><li ><a href='javascript:$.setSearchType("task");' data-value='task'>任务</a></li><li ><a href='javascript:$.setSearchType("testcase");' data-value='testcase'>用例</a></li><li ><a href='javascript:$.setSearchType("project");' data-value='project'>项目</a></li><li ><a href='javascript:$.setSearchType("product");' data-value='product'>产品</a></li><li ><a href='javascript:$.setSearchType("user");' data-value='user'>用户</a></li><li ><a href='javascript:$.setSearchType("build");' data-value='build'>版本</a></li><li ><a href='javascript:$.setSearchType("release");' data-value='release'>发布</a></li><li ><a href='javascript:$.setSearchType("productplan");' data-value='productplan'>产品计划</a></li><li ><a href='javascript:$.setSearchType("testtask");' data-value='testtask'>测试单</a></li><li ><a href='javascript:$.setSearchType("doc");' data-value='doc'>文档</a></li><li ><a href='javascript:$.setSearchType("caselib");' data-value='caselib'>用例库</a></li><li ><a href='javascript:$.setSearchType("testreport");' data-value='testreport'>测试报告</a></li></ul></div><input id='searchInput' class='form-control search-input' type='search' onclick='this.value=""' onkeydown='if(event.keyCode==13) $.gotoObject();' placeholder='编号(ctrl+g)'/></div><a href='javascript:$.gotoObject();' class='btn btn-link' id='searchGo'>GO!</a></div>
                    <ul id="userNav" class="nav nav-default">
                        <li><a class='dropdown-toggle' data-toggle='dropdown'><span class='user-name'>guest</span><span class='caret'></span></a><ul class='dropdown-menu pull-right'><li class='dropdown-submenu'><a href='javascript:;'>主题</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectTheme("default");' data-value='default'>禅道蓝（默认）</a></li><li ><a href='javascript:selectTheme("green");' data-value='green'>叶兰绿</a></li><li ><a href='javascript:selectTheme("red");' data-value='red'>赤诚红</a></li><li ><a href='javascript:selectTheme("purple");' data-value='purple'>玉烟紫</a></li><li ><a href='javascript:selectTheme("pink");' data-value='pink'>芙蕖粉</a></li><li ><a href='javascript:selectTheme("blackberry");' data-value='blackberry'>露莓黑</a></li><li ><a href='javascript:selectTheme("classic");' data-value='classic'>经典蓝</a></li></ul></li><li class='dropdown-submenu'><a href='javascript:;'>Language</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectLang("zh-cn");'>简体</a></li><li ><a href='javascript:selectLang("zh-tw");'>繁體</a></li><li ><a href='javascript:selectLang("en");'>English</a></li><li ><a href='javascript:selectLang("de");'>Deutsch</a></li><li ><a href='javascript:selectLang("fr");'>Français</a></li><li ><a href='javascript:selectLang("vi");'>Tiếng Việt</a></li><li ><a href='javascript:selectLang("ja");'>日本語</a></li></ul></li><li class="divider"></li><li class='dropdown-submenu'><a data-toggle='dropdown'>帮助</a><ul class='dropdown-menu pull-left'><li><a href='https://www.zentao.net/book/zentaopmshelp.html?fullScreen=zentao' class='open-help-tab' target='_blank' rel='noopener noreferrer'>手册</a>
                        </li><li><a href='/misc-changeLog.html' class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>修改日志</a>
                        </li></ul></li>
                            <li><a href='/misc-about.html' class='about iframe' data-width='1050' data-headerless='true' data-backdrop='true' data-keyboard='true' data-class='modal-about'>关于禅道</a>
                            </li><li class="divider"></li><li><a href='/user-login.html' >登录</a>
                            </li></ul></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id='subHeader'>
        <div class='container'>
            <div id="pageNav" class='btn-toolbar'><div class="btn-group angle-btn"><div class="btn-group"><a href='/qa-index-no.html' class='btn'>测试主页</a>
            </div></div><div class='btn-group angle-btn'><div class='btn-group'><button data-toggle='dropdown' type='button' class='btn btn-limit' id='currentItem' title='企业内部工时管理系统'>企业内部工时管理系统 <span class='caret'></span></button><div id='dropMenu' class='dropdown-menu search-list' data-ride='searchList' data-url='/product-ajaxGetDropMenu-2-bug-browse-.html'><div class="input-control search-box has-icon-left has-icon-right search-example"><input type="search" class="form-control search-input" /><label class="input-control-icon-left search-icon"><i class="icon icon-search"></i></label><a class="input-control-icon-right search-clear-btn"><i class="icon icon-close icon-sm"></i></a></div></div></div></div></div>
            <nav id='subNavbar'><ul class='nav nav-default'>
                <li class=' active' data-id='bug'><a href='/bugTest/bug/bug-browse-2--all' >Bug</a>
                </li>
                <li class='dropdown dropdown-hover ' data-id='testcase'><a href='/testcase-browse-2.html' >用例<span class='caret'></span></a>
                    <ul class='dropdown-menu'><li class='' data-id='feature'><a href='/testcase-browse-2.html' >功能测试</a>
                    </li></ul></li>
                <li class=' ' data-id='testtask'><a href='/testtask-browse-2.html' >测试单</a>
                </li>
                <li class=' ' data-id='report'><a href='/testreport-browse-2.html' >报告</a>
                </li>
                <li class=' ' data-id='testsuite'><a href='/testsuite-browse-2.html' >套件</a>
                </li>
                <li class=' ' data-id='caselib'><a href='/caselib-browse.html' >用例库</a>
                </li>
            </ul>
            </nav>
            <div id="pageActions"><div class='btn-toolbar'></div></div>
        </div>
    </div>
</header>

<main id='main'  >
    <div class='container'>
        <script src='/js/kindeditor/kindeditor.min.js?v=12.5.3'></script>
        <script src='/js/kindeditor/lang/zh_CN.js?v=12.5.3'></script>
        <script>
            (function($) {
                var kuid = '60c2cd1ad572b';
                var editor = {"id":["steps","comment"],"tools":"bugTools"};
                var K = KindEditor;

                var bugTools =
                    [ 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic','underline', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'code', 'link', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source', 'about'];
                var simpleTools =
                    [ 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic','underline', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'code', 'link', 'table', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source', 'about'];
                var fullTools =
                    [ 'formatblock', 'fontname', 'fontsize', 'lineheight', '|', 'forecolor', 'hilitecolor', '|', 'bold', 'italic','underline', 'strikethrough', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', '|',
                        'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'insertfile', 'hr', '|', 'link', 'unlink', '/',
                        'undo', 'redo', '|', 'selectall', 'cut', 'copy', 'paste', '|', 'plainpaste', 'wordpaste', '|', 'removeformat', 'clearhtml','quickformat', '|',
                        'indent', 'outdent', 'subscript', 'superscript', '|',
                        'table', 'code', '|', 'pagebreak', 'anchor', '|',
                        'fullscreen', 'source', 'preview', 'about'];
                var editorToolsMap = {fullTools: fullTools, simpleTools: simpleTools, bugTools: bugTools};

                // Kindeditor default options
                var editorDefaults =
                    {
                        cssPath: [config.themeRoot + 'zui/css/min.css'],
                        width: '100%',
                        height: '200px',
                        filterMode: true,
                        bodyClass: 'article-content',
                        urlType: 'absolute',
                        uploadJson: createLink('file', 'ajaxUpload', 'uid=' + kuid),
                        langType: 'zh_CN',
                        cssData: 'html,body {background: none}.article-content{overflow:visible}.article-content, .article-content table td, .article-content table th {line-height: 1.3846153846; font-size: 13px;}.article-content .table-auto {width: auto!important; max-width: 100%;}',
                        placeholder: "\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u76f4\u63a5\u8d34\u56fe\u3002",
                        placeholderStyle: {fontSize: '13px', color: '#888'},
                        pasteImage: {postUrl: createLink('file', 'ajaxPasteImage', 'uid=' + kuid)},
                        syncAfterBlur: true,
                        spellcheck: false
                    };

                window.editor = {};

                // Init kindeditor
                var setKindeditor = function(element, options)
                {
                    var $editor  = $(element);
                    var pasted   = false;
                    var editorID = $editor.attr('id');
                    options      = $.extend({}, editorDefaults, $editor.data(), options);
                    if(editorID === undefined)
                    {
                        editorID = 'kindeditor-' + $.zui.uuid();
                        $editor.attr('id', editorID);
                    }

                    var editorTool  = editorToolsMap[options.tools || editor.tools] || simpleTools;

                    /* Remove fullscreen in modal. */
                    if(config.onlybody == 'yes')
                    {
                        var newEditorTool = new Array();
                        for(i in editorTool)
                        {
                            if(editorTool[i] != 'fullscreen') newEditorTool.push(editorTool[i]);
                        }
                        editorTool = newEditorTool;
                    }

                    $.extend(options,
                        {
                            items: editorTool,
                            placeholder: $editor.attr('placeholder') || options.placeholder || '',
                            pasteImage: {postUrl: createLink('file', 'ajaxPasteImage', 'uid=' + kuid), placeholder: $editor.attr('placeholder') || "\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u76f4\u63a5\u8d34\u56fe\u3002"},
                        });

                    try
                    {
                        var keditor = K.create('#' + editorID, options);
                        window.editor['#'] = window.editor[editorID] = keditor;
                        $editor.data('keditor', keditor);
                        return keditor;
                    }
                    catch(e){return false;}
                };

                // Init kindeditor with jquery way
                $.fn.kindeditor = function(options)
                {
                    return this.each(function()
                    {
                        setKindeditor(this, options);
                    });
                };

                // Init all kindeditor
                var initKindeditor = function(afterInit)
                {
                    var $submitBtn = $('form :input[type=submit]');
                    if($submitBtn.length)
                    {
                        $submitBtn.next('#uid').remove();
                        $submitBtn.after("<input type='hidden' id='uid' name='uid' value=" + kuid + ">");
                    }
                    if($.isFunction(afterInit)) afterInit();
                    $.each(editor.id, function(key, editorID)
                    {
                        setKindeditor('#' + editorID);
                    });
                };

                // Init all kindeditors when document is ready
                $(initKindeditor);
            }(jQuery));
        </script>
        <script>page = "edit";</script>
        <script>changeProductConfirmed = false;</script>
        <script>changeProjectConfirmed = false;</script>
        <script>confirmChangeProduct = "\u4fee\u6539\u4ea7\u54c1\u4f1a\u5bfc\u81f4\u76f8\u5e94\u7684\u9879\u76ee\u3001\u9700\u6c42\u548c\u4efb\u52a1\u53d1\u751f\u53d8\u5316\uff0c\u786e\u5b9a\u5417\uff1f";</script>
        <script>planID = 0;</script>
        <script>oldProjectID = 3;</script>
        <script>oldStoryID = 0;</script>
        <script>oldTaskID = 0;</script>
        <script>oldOpenedBuild = "trunk";</script>
        <script>oldResolvedBuild = "";</script>

        <div class='main-content' id='mainContent'>
            <form method='post' target='hiddenwin' enctype='multipart/form-data' id='dataform'>
                <div class='main-header'>
                    <h2>
                        <span class='label label-id'>357</span>
                        <a href='/bug-view-357.html' class='bug-title' title='提交错误'>提交错误</a>
                        <small>&nbsp;<i class="icon-angle-right"></i>&nbsp; 编辑Bug</small>
                    </h2>
                </div>
                <div class='main-row'>
                    <div class='main-col col-8'>
                        <div class='cell'>
                            <div class='form-group'>
                                <div class="input-control has-icon-right">
                                    <div class="colorpicker">
                                        <button type="button" class="btn btn-link dropdown-toggle" data-toggle="dropdown"><span class="cp-title"></span><span class="color-bar"></span><i class="ic"></i></button>
                                        <ul class="dropdown-menu clearfix">
                                            <li class="heading">颜色标签<i class="icon icon-close"></i></li>
                                        </ul>
                                        <input type="hidden" class="colorpicker" id="color" name="color" value="" data-icon="color" data-wrapper="input-control-icon-right" data-update-color=".bug-title"  data-provide="colorpicker">
                                    </div>
                                    <input type='text' name='title' id='title' value='提交错误' class='form-control bug-title' autocomplete="off" />
                                </div>
                            </div>
                            <div class='detail'>
                                <div class='detail-title'>重现步骤</div>
                                <div class='detail-content'>
              <textarea name='steps' id='steps' rows='12' class='form-control kindeditor' hidefocus='true'></textarea>
                                </div>
                            </div>
<!--                            <div class='detail'>-->
<!--                                <div class='detail-title'>备注</div>-->
<!--                                <div class='detail-content article-content'>-->
<!--                                    <textarea name='comment' id='comment' rows='5' class='form-control kindeditor' hidefocus='true'></textarea>-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="detail">
                                <div class="detail-title">附件 </div>
                                <div class='detail-content'><style>
                                    .file-input .file-editbox{max-width:40%;}
                                    .file-input-list .input-group-btn{float:left}
                                </style>
                                    <script>dangerExtensions = ",php,php3,php4,phtml,php5,jsp,py,rb,asp,aspx,ashx,asa,cer,cdx,aspl,shtm,shtml,html,htm,";</script>
                                    <div class="file-input-list" data-provide="fileInputList" data-each-file-max-size="50M" data-file-size-error=" 文件大小已经超过50M，可能不能成功上传！">
                                        <div class="file-input">
                                            <div class="file-input-empty">
                                                <button type="button" class="btn btn-link file-input-btn"><i class="icon icon-plus"></i> 添加文件</button> <small class="muted">（不超过50M）</small>
                                            </div>
                                            <div class="file-input-edit input-group">
                                                <div class="input-group-cell"><i class="icon icon-paper-clip text-muted"></i></div>
                                                <input type="text" name="labels[]" class="form-control file-editbox" placeholder="标题">
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn btn-success file-name-confirm"><i class="icon icon-check"></i></button>
                                                    <button type="button" class="btn btn-gray file-name-cancel"><i class="icon icon-close"></i></button>
                                                </div>
                                            </div>
                                            <div class="file-input-normal input-group">
                                                <div class="input-group-cell"><i class="icon icon-paper-clip text-muted"></i></div>
                                                <div class="input-group-cell">
                                                    <span class="file-title"></span>
                                                    <small class="file-size muted"></small>
                                                </div>
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn btn-link file-input-rename">重命名</button>
                                                    <button type="button" class="btn btn-link file-input-delete">删除</button>
                                                </div>
                                            </div>
                                            <input type="file" name="files[]" onchange="checkDangerExtension(this)" />
                                        </div>
                                    </div>
                                    <script>
                                        function checkDangerExtension(obj)
                                        {
                                            var fileName = $(obj).val();
                                            var index    = fileName.lastIndexOf(".");
                                            var fileSize = $(obj)[0].files[0].size;

                                            if(index >= 0)
                                            {
                                                extension = fileName.substr(index + 1);
                                                if(dangerExtensions.lastIndexOf(',' + extension + ',') >= 0)
                                                {
                                                    alert(" \u60a8\u9009\u62e9\u7684\u6587\u4ef6\u5b58\u5728\u5b89\u5168\u98ce\u9669\uff0c\u7cfb\u7edf\u5c06\u4e0d\u4e88\u4e0a\u4f20\u3002");
                                                    $(obj).val('');
                                                    return false;
                                                }

                                                if(fileSize == 0)
                                                {
                                                    alert("\u4e0a\u4f20\u6587\u4ef6\u5185\u5bb9\u4e3a\u7a7a\uff0c\u8bf7\u68c0\u67e5\u540e\u91cd\u65b0\u4e0a\u4f20\u3002");
                                                    $(obj).val('');
                                                    return false;
                                                }
                                            }
                                        }
                                    </script>
                                </div>
                            </div>

                            <div class='actions form-actions text-center'>
                                <input type='hidden' name='lastEditedDate' id='lastEditedDate' value='2021-06-11 10:24:02'  />
                                <button type='submit' id='submit' class='btn btn-wide btn-primary'  data-loading='稍候...'>保存</button>
                                <a href='javascript:history.go(-1);' class='btn btn-back btn-wide' >返回</a>          </div>
                            <hr class='small' />
                            <div class="detail histories" id='actionbox' data-textDiff="文本格式" data-original="原始格式">
                                <style>.histories-list > li{word-break: break-word; word-wrap: break-word;}</style>
                                <script>
                                    $(function()
                                    {
                                        var diffButton = '<button type="button" class="btn btn-mini btn-icon btn-strip"><i class="icon icon-code icon-sm"></i></button>';
                                        var newBoxID = '';
                                        var oldBoxID = '';
                                        $('blockquote.textdiff').each(function()
                                        {
                                            newBoxID = $(this).parent().attr('id');
                                            if(newBoxID != oldBoxID)
                                            {
                                                oldBoxID = newBoxID;
                                                if($(this).html() != $(this).next().html()) $(this).closest('.history-changes').before(diffButton);
                                            }
                                        });
                                    });
                                </script>
                                <div class="detail-title">
                                    历史记录 &nbsp;
                                    <button type="button" class="btn btn-mini btn-icon btn-reverse" title='切换顺序'>
                                        <i class="icon icon-arrow-up icon-sm"></i>
                                    </button>
                                    <button type="button" class="btn btn-mini btn-icon btn-expand-all" title='切换显示'>
                                        <i class="icon icon-plus icon-sm"></i>
                                    </button>
                                </div>
                                <div class="detail-content">
                                    <ol class='histories-list'>
                                        <li value='1'>
                                            2021-06-11 10:23:18, 由 <strong>Demo</strong> 创建。
                                        </li>
                                        <li value='2'>
                                            2021-06-11 10:24:02, 由 <strong>Demo</strong> 确认Bug。
                                            <button type='button' class='btn btn-mini switch-btn btn-icon btn-expand' title='切换显示'><i class='change-show icon icon-plus icon-sm'></i></button>
                                            <div class='history-changes' id='changeBox3'>
                                                修改了 <strong><i>是否确认</i></strong>，旧值为 "0"，新值为 "1"。<br />
                                            </div>
                                        </li>
                                    </ol>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class='side-col col-4'>
                        <div class='cell'>
                            <div class='detail'>
                                <div class='detail-title'>基本信息</div>
                                <table class='table table-form'>
                                    <tbody>
                                    <tr>
                                        <th class='w-80px'>所属产品</th>
                                        <td>
                                            <div class='input-group'>
                                                <select name='product' id='product' onchange='loadAll(this.value)' class='form-control chosen'>
                                                    <option value='3' title='123' data-keys='123 1'>123</option>
                                                    <option value='2' selected='selected' title='企业内部工时管理系统' data-keys='qiyeneibugongshiguanlixitong qynbgsglxt'>企业内部工时管理系统</option>
                                                    <option value='1' title='公司企业网站建设' data-keys='gongsiqiyewangzhanjianshe gsqywzjs'>公司企业网站建设</option>
                                                </select>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>所属模块</th>
                                        <td>
                                            <div class='input-group' id='moduleIdBox'>
                                                <select name='module' id='module' onchange='loadModuleRelated()' class='form-control chosen'>
                                                    <option value='0' selected='selected' title='/' data-keys='/ /'>/</option>
                                                </select>
                                                <span class='input-group-addon'><a href='/tree-browse-2-bug-0-0.html?onlybody=yes' class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'>维护模块</a>
&nbsp; <a href='javascript:void(0)' class='refresh' onclick='loadProductModules(2)'>刷新</a>
</span>                    </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>所属计划</th>
                                        <td>
                    <span id="planIdBox"><select name='plan' id='plan' class='form-control chosen'>
<option value='' title='' data-keys=' '></option>
<option value='2' title='实施 [2021-06-11 ~ 2021-06-24]' data-keys='shishi [2021-06-11  2021-06-24] ss22'>实施 [2021-06-11 ~ 2021-06-24]</option>
</select>
</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>Bug类型</th>
                                        <td><select name='type' id='type' class='form-control chosen'>
                                            <option value='' title='' data-keys=' '></option>
                                            <option value='codeerror' selected='selected' title='代码错误' data-keys='daimacuowu dmcw'>代码错误</option>
                                            <option value='config' title='配置相关' data-keys='peizhixiangguan pzxg'>配置相关</option>
                                            <option value='install' title='安装部署' data-keys='anzhuangbushu azbs'>安装部署</option>
                                            <option value='security' title='安全相关' data-keys='anquanxiangguan aqxg'>安全相关</option>
                                            <option value='performance' title='性能问题' data-keys='xingnengwenti xnwt'>性能问题</option>
                                            <option value='standard' title='标准规范' data-keys='biaozhunguifan bzgf'>标准规范</option>
                                            <option value='automation' title='测试脚本' data-keys='ceshijiaoben csjb'>测试脚本</option>
                                            <option value='designdefect' title='设计缺陷' data-keys='shejiquexian sjqx'>设计缺陷</option>
                                            <option value='others' title='其他' data-keys='qita qt'>其他</option>
                                        </select>
                                        </td>
                                    </tr>
<!--                                    <tr>-->
<!--                                        <th>严重程度</th>-->
<!--                                        <td><select name='severity' id='severity' class='form-control chosen'>-->
<!--                                            <option value='1' title='1' data-keys='1 1'>1</option>-->
<!--                                            <option value='2' title='2' data-keys='2 2'>2</option>-->
<!--                                            <option value='3' selected='selected' title='3' data-keys='3 3'>3</option>-->
<!--                                            <option value='4' title='4' data-keys='4 4'>4</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>优先级</th>-->
<!--                                        <td><select name='pri' id='pri' class='form-control chosen'>-->
<!--                                            <option value='0' title='' data-keys=' '></option>-->
<!--                                            <option value='1' title='1' data-keys='1 1'>1</option>-->
<!--                                            <option value='2' title='2' data-keys='2 2'>2</option>-->
<!--                                            <option value='3' selected='selected' title='3' data-keys='3 3'>3</option>-->
<!--                                            <option value='4' title='4' data-keys='4 4'>4</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
                                    <tr>
                                        <th>Bug状态</th>
                                        <td><select name='status' id='status' class='form-control chosen'>
                                            <option value='' title='' data-keys=' '></option>
                                            <option value='active' selected='selected' title='激活' data-keys='jihuo jh'>激活</option>
                                            <option value='resolved' title='已解决' data-keys='yijiejue yjj'>已解决</option>
                                            <option value='closed' title='已关闭' data-keys='yiguanbi ygb'>已关闭</option>
                                        </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>是否确认</th>
                                        <td>是</td>
                                    </tr>
                                    <tr>
                                        <th>指派给</th>
                                        <td><select name='assignedTo' id='assignedTo' class='form-control chosen'>
                                            <option value='' title='' data-keys=' '></option>
                                            <option value='12' title='1:123' data-keys='1:123 11'>1:123</option>
                                            <option value='admin' title='A:admin' data-keys='a:admin aa'>A:admin</option>
                                            <option value='demo' title='D:Demo' data-keys='d:demo dd'>D:Demo</option>
                                            <option value='dev1' title='D:开发甲' data-keys='d:kaifajia dkfj'>D:开发甲</option>
                                            <option value='dev2' title='D:开发乙' data-keys='d:kaifayi dkfy'>D:开发乙</option>
                                            <option value='dev3' selected='selected' title='D:开发丙' data-keys='d:kaifabing dkfb'>D:开发丙</option>
                                            <option value='feedback' title='F:Feedback' data-keys='f:feedback ff'>F:Feedback</option>
                                            <option value='Max' title='M:Max' data-keys='m:max mm'>M:Max</option>
                                            <option value='productManager' title='P:产品经理1' data-keys='p:chanpinjingli1 pcpjl1'>P:产品经理1</option>
                                            <option value='project.Manager' title='P:项目经理' data-keys='p:xiangmujingli pxmjl'>P:项目经理</option>
                                            <option value='tester1' title='T:测试甲' data-keys='t:ceshijia tcsj'>T:测试甲</option>
                                            <option value='tester2' title='T:测试乙' data-keys='t:ceshiyi tcsy'>T:测试乙</option>
                                            <option value='tester3' title='T:测试丙' data-keys='t:ceshibing tcsb'>T:测试丙</option>
                                            <option value='testManager' title='T:测试经理' data-keys='t:ceshijingli tcsjl'>T:测试经理</option>
                                            <option value='closed' title='Closed' data-keys='closed c'>Closed</option>
                                        </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>截止日期</th>
                                        <td><input type='text' name='deadline' id='deadline' value='0000-00-00' class='form-control form-date' autocomplete="off" />
                                        </td>
                                    </tr>
<!--                                    <tr>-->
<!--                                        <th>操作系统</th>-->
<!--                                        <td><select name='os' id='os' class='form-control chosen'>-->
<!--                                            <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                            <option value='all' title='全部' data-keys='quanbu qb'>全部</option>-->
<!--                                            <option value='windows' title='Windows' data-keys='windows w'>Windows</option>-->
<!--                                            <option value='win10' title='Windows 10' data-keys='windows 10 w1'>Windows 10</option>-->
<!--                                            <option value='win8' title='Windows 8' data-keys='windows 8 w8'>Windows 8</option>-->
<!--                                            <option value='win7' title='Windows 7' data-keys='windows 7 w7'>Windows 7</option>-->
<!--                                            <option value='vista' title='Windows Vista' data-keys='windows vista wv'>Windows Vista</option>-->
<!--                                            <option value='winxp' title='Windows XP' data-keys='windows xp wx'>Windows XP</option>-->
<!--                                            <option value='win2012' title='Windows 2012' data-keys='windows 2012 w2'>Windows 2012</option>-->
<!--                                            <option value='win2008' title='Windows 2008' data-keys='windows 2008 w2'>Windows 2008</option>-->
<!--                                            <option value='win2003' title='Windows 2003' data-keys='windows 2003 w2'>Windows 2003</option>-->
<!--                                            <option value='win2000' title='Windows 2000' data-keys='windows 2000 w2'>Windows 2000</option>-->
<!--                                            <option value='android' title='Android' data-keys='android a'>Android</option>-->
<!--                                            <option value='ios' title='IOS' data-keys='ios i'>IOS</option>-->
<!--                                            <option value='wp8' title='WP8' data-keys='wp8 w'>WP8</option>-->
<!--                                            <option value='wp7' title='WP7' data-keys='wp7 w'>WP7</option>-->
<!--                                            <option value='symbian' title='Symbian' data-keys='symbian s'>Symbian</option>-->
<!--                                            <option value='linux' title='Linux' data-keys='linux l'>Linux</option>-->
<!--                                            <option value='freebsd' title='FreeBSD' data-keys='freebsd f'>FreeBSD</option>-->
<!--                                            <option value='osx' title='OS X' data-keys='os x ox'>OS X</option>-->
<!--                                            <option value='unix' title='Unix' data-keys='unix u'>Unix</option>-->
<!--                                            <option value='others' title='其他' data-keys='qita qt'>其他</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>浏览器</th>-->
<!--                                        <td><select name='browser' id='browser' class='form-control chosen'>-->
<!--                                            <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                            <option value='all' title='全部' data-keys='quanbu qb'>全部</option>-->
<!--                                            <option value='ie' title='IE系列' data-keys='iexilie ixl'>IE系列</option>-->
<!--                                            <option value='ie11' title='IE11' data-keys='ie11 i'>IE11</option>-->
<!--                                            <option value='ie10' title='IE10' data-keys='ie10 i'>IE10</option>-->
<!--                                            <option value='ie9' title='IE9' data-keys='ie9 i'>IE9</option>-->
<!--                                            <option value='ie8' title='IE8' data-keys='ie8 i'>IE8</option>-->
<!--                                            <option value='ie7' title='IE7' data-keys='ie7 i'>IE7</option>-->
<!--                                            <option value='ie6' title='IE6' data-keys='ie6 i'>IE6</option>-->
<!--                                            <option value='chrome' title='chrome' data-keys='chrome c'>chrome</option>-->
<!--                                            <option value='firefox' title='firefox系列' data-keys='firefoxxilie fxl'>firefox系列</option>-->
<!--                                            <option value='firefox4' title='firefox4' data-keys='firefox4 f'>firefox4</option>-->
<!--                                            <option value='firefox3' title='firefox3' data-keys='firefox3 f'>firefox3</option>-->
<!--                                            <option value='firefox2' title='firefox2' data-keys='firefox2 f'>firefox2</option>-->
<!--                                            <option value='opera' title='opera系列' data-keys='operaxilie oxl'>opera系列</option>-->
<!--                                            <option value='oprea11' title='opera11' data-keys='opera11 o'>opera11</option>-->
<!--                                            <option value='oprea10' title='opera10' data-keys='opera10 o'>opera10</option>-->
<!--                                            <option value='opera9' title='opera9' data-keys='opera9 o'>opera9</option>-->
<!--                                            <option value='safari' title='safari' data-keys='safari s'>safari</option>-->
<!--                                            <option value='maxthon' title='傲游' data-keys='aoyou ay'>傲游</option>-->
<!--                                            <option value='uc' title='UC' data-keys='uc u'>UC</option>-->
<!--                                            <option value='other' title='其他' data-keys='qita qt'>其他</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
                                    <tr>
                                        <th>关键词</th>
                                        <td><input type='text' name='keywords' id='keywords' value='' class="form-control" autocomplete="off" />
                                        </td>
                                    </tr>
<!--                                    <tr>-->
<!--                                        <th>抄送给</th>-->
<!--                                        <td>-->
<!--                                            <div class='input-group'>-->
<!--                                                <select name='mailto[]' id='mailto' class="form-control chosen" multiple>-->
<!--                                                    <option value='' title='' data-keys=' '></option>-->
<!--                                                    <option value='12' title='1:123' data-keys='1:123 11'>1:123</option>-->
<!--                                                    <option value='admin' title='A:admin' data-keys='a:admin aa'>A:admin</option>-->
<!--                                                    <option value='demo' title='D:Demo' data-keys='d:demo dd'>D:Demo</option>-->
<!--                                                    <option value='dev1' selected='selected' title='D:开发甲' data-keys='d:kaifajia dkfj'>D:开发甲</option>-->
<!--                                                    <option value='dev2' selected='selected' title='D:开发乙' data-keys='d:kaifayi dkfy'>D:开发乙</option>-->
<!--                                                    <option value='dev3' selected='selected' title='D:开发丙' data-keys='d:kaifabing dkfb'>D:开发丙</option>-->
<!--                                                    <option value='feedback' title='F:Feedback' data-keys='f:feedback ff'>F:Feedback</option>-->
<!--                                                    <option value='Max' title='M:Max' data-keys='m:max mm'>M:Max</option>-->
<!--                                                    <option value='productManager' title='P:产品经理1' data-keys='p:chanpinjingli1 pcpjl1'>P:产品经理1</option>-->
<!--                                                    <option value='project.Manager' title='P:项目经理' data-keys='p:xiangmujingli pxmjl'>P:项目经理</option>-->
<!--                                                    <option value='tester1' title='T:测试甲' data-keys='t:ceshijia tcsj'>T:测试甲</option>-->
<!--                                                    <option value='tester2' title='T:测试乙' data-keys='t:ceshiyi tcsy'>T:测试乙</option>-->
<!--                                                    <option value='tester3' title='T:测试丙' data-keys='t:ceshibing tcsb'>T:测试丙</option>-->
<!--                                                    <option value='testManager' title='T:测试经理' data-keys='t:ceshijingli tcsjl'>T:测试经理</option>-->
<!--                                                    <option value='closed' title='Closed' data-keys='closed c'>Closed</option>-->
<!--                                                </select>-->
<!--                                                <select name='contactListMenu' id='contactListMenu' class='form-control chosen' onchange="setMailto('mailto', this.value)">-->
<!--                                                    <option value='' selected='selected' title='联系人' data-keys='lianxiren lxr'>联系人</option>-->
<!--                                                    <option value='14' title='dd' data-keys='dd d'>dd</option>-->
<!--                                                    <option value='15' title='111' data-keys='111 1'>111</option>-->
<!--                                                    <option value='17' title='12' data-keys='12 1'>12</option>-->
<!--                                                </select>-->
<!--                                                <style>-->
<!--                                                    #contactListMenu_chosen{width:100px !important;}-->
<!--                                                    #contactListMenu + .chosen-container {min-width: 100px;}-->
<!--                                                    td > #mailto + .chosen-container .chosen-choices {border-radius: 2px 2px 0 0;}-->
<!--                                                    td > #mailto + .chosen-container + #contactListMenu + .chosen-container > .chosen-single {border-radius: 0 0 2px 2px; border-top-width: 0; padding-top: 6px;}-->
<!--                                                    #contactListMenu + .chosen-container.chosen-container-active > .chosen-single {border-top-width: 1px!important; padding-top: 5px!important;}-->
<!--                                                </style>-->
<!--                                            </div>-->
<!--                                        </td>-->
<!--                                    </tr>-->
                                    </tbody>
                                </table>
                            </div>
                            <div class='detail'>
                                <div class='detail-title'>项目/需求/任务</div>
                                <table class='table table-form'>
                                    <tbody>
                                    <tr>
                                        <th class='w-80px'>所属项目</th>
                                        <td><span id='projectIdBox'><select name='project' id='project' class='form-control chosen' onchange='loadProjectRelated(this.value)'>
<option value='' title='' data-keys=' '></option>
<option value='3' selected='selected' title='测试' data-keys='ceshi cs'>测试</option>
<option value='2' title='企业网站第二期' data-keys='qiyewangzhandierqi qywzdeq'>企业网站第二期</option>
</select>
</span></td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
<!--                            <div class='detail'>-->
<!--                                <div class='detail-title'>Bug的一生</div>-->
<!--                                <table class='table table-form'>-->
<!--                                    <tbody>-->
<!--                                    <tr>-->
<!--                                        <th class='thWidth'>由谁创建</th>-->
<!--                                        <td>D:Demo</td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>影响版本</th>-->
<!--                                        <td>-->
<!--                                            <div id='openedBuildBox' class='input-group'>-->
<!--                                                <select name='openedBuild[]' id='openedBuild' size=4 multiple=multiple class="chosen form-control">-->
<!--                                                    <option value='trunk' selected='selected' title='主干' data-keys='zhugan zg'>主干</option>-->
<!--                                                </select>-->
<!--                                                <span class='input-group-btn'> <button type='button' class='btn' class='btn' onclick='loadAllBuilds(this)'>所有</button></span>-->
<!--                                            </div>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>解决者</th>-->
<!--                                        <td><select name='resolvedBy' id='resolvedBy' class='form-control chosen'>-->
<!--                                            <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                            <option value='12' title='1:123' data-keys='1:123 11'>1:123</option>-->
<!--                                            <option value='admin' title='A:admin' data-keys='a:admin aa'>A:admin</option>-->
<!--                                            <option value='demo' title='D:Demo' data-keys='d:demo dd'>D:Demo</option>-->
<!--                                            <option value='dev1' title='D:开发甲' data-keys='d:kaifajia dkfj'>D:开发甲</option>-->
<!--                                            <option value='dev2' title='D:开发乙' data-keys='d:kaifayi dkfy'>D:开发乙</option>-->
<!--                                            <option value='dev3' title='D:开发丙' data-keys='d:kaifabing dkfb'>D:开发丙</option>-->
<!--                                            <option value='feedback' title='F:Feedback' data-keys='f:feedback ff'>F:Feedback</option>-->
<!--                                            <option value='Max' title='M:Max' data-keys='m:max mm'>M:Max</option>-->
<!--                                            <option value='productManager' title='P:产品经理1' data-keys='p:chanpinjingli1 pcpjl1'>P:产品经理1</option>-->
<!--                                            <option value='project.Manager' title='P:项目经理' data-keys='p:xiangmujingli pxmjl'>P:项目经理</option>-->
<!--                                            <option value='tester1' title='T:测试甲' data-keys='t:ceshijia tcsj'>T:测试甲</option>-->
<!--                                            <option value='tester2' title='T:测试乙' data-keys='t:ceshiyi tcsy'>T:测试乙</option>-->
<!--                                            <option value='tester3' title='T:测试丙' data-keys='t:ceshibing tcsb'>T:测试丙</option>-->
<!--                                            <option value='testManager' title='T:测试经理' data-keys='t:ceshijingli tcsjl'>T:测试经理</option>-->
<!--                                            <option value='closed' title='Closed' data-keys='closed c'>Closed</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>解决日期</th>-->
<!--                                        <td><input type='text' name='resolvedDate' id='resolvedDate' value='' class='form-control form-datetime' autocomplete="off" />-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>解决版本</th>-->
<!--                                        <td>-->
<!--                                            <div id='resolvedBuildBox' class='input-group'>-->
<!--                                                <select name='resolvedBuild' id='resolvedBuild' class='form-control chosen'>-->
<!--                                                    <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                                    <option value='trunk' title='主干' data-keys='zhugan zg'>主干</option>-->
<!--                                                </select>-->
<!--                                                <span class='input-group-btn'> <button type='button' class='btn' class='btn' onclick='loadAllBuilds(this)'>所有</button></span>-->
<!--                                            </div>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>解决方案</th>-->
<!--                                        <td><select name='resolution' id='resolution' class=form-control onchange=setDuplicate(this.value)>-->
<!--                                            <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                            <option value='bydesign' title='设计如此' data-keys='shejiruci sjrc'>设计如此</option>-->
<!--                                            <option value='duplicate' title='重复Bug' data-keys='zhongfubug zfb'>重复Bug</option>-->
<!--                                            <option value='external' title='外部原因' data-keys='waibuyuanyin wbyy'>外部原因</option>-->
<!--                                            <option value='fixed' title='已解决' data-keys='yijiejue yjj'>已解决</option>-->
<!--                                            <option value='notrepro' title='无法重现' data-keys='wufazhongxian wfzx'>无法重现</option>-->
<!--                                            <option value='postponed' title='延期处理' data-keys='yanqichuli yqcl'>延期处理</option>-->
<!--                                            <option value='willnotfix' title='不予解决' data-keys='buyujiejue byjj'>不予解决</option>-->
<!--                                            <option value='tostory' title='转为需求' data-keys='zhuanweixuqiu zwxq'>转为需求</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr id='duplicateBugBox' style='display:none'>-->
<!--                                        <th>重复ID</th>-->
<!--                                        <td><input type='text' name='duplicateBug' id='duplicateBug' value='0' class=form-control autocomplete="off" />-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>由谁关闭</th>-->
<!--                                        <td><select name='closedBy' id='closedBy' class='form-control chosen'>-->
<!--                                            <option value='' selected='selected' title='' data-keys=' '></option>-->
<!--                                            <option value='12' title='1:123' data-keys='1:123 11'>1:123</option>-->
<!--                                            <option value='admin' title='A:admin' data-keys='a:admin aa'>A:admin</option>-->
<!--                                            <option value='demo' title='D:Demo' data-keys='d:demo dd'>D:Demo</option>-->
<!--                                            <option value='dev1' title='D:开发甲' data-keys='d:kaifajia dkfj'>D:开发甲</option>-->
<!--                                            <option value='dev2' title='D:开发乙' data-keys='d:kaifayi dkfy'>D:开发乙</option>-->
<!--                                            <option value='dev3' title='D:开发丙' data-keys='d:kaifabing dkfb'>D:开发丙</option>-->
<!--                                            <option value='feedback' title='F:Feedback' data-keys='f:feedback ff'>F:Feedback</option>-->
<!--                                            <option value='Max' title='M:Max' data-keys='m:max mm'>M:Max</option>-->
<!--                                            <option value='productManager' title='P:产品经理1' data-keys='p:chanpinjingli1 pcpjl1'>P:产品经理1</option>-->
<!--                                            <option value='project.Manager' title='P:项目经理' data-keys='p:xiangmujingli pxmjl'>P:项目经理</option>-->
<!--                                            <option value='tester1' title='T:测试甲' data-keys='t:ceshijia tcsj'>T:测试甲</option>-->
<!--                                            <option value='tester2' title='T:测试乙' data-keys='t:ceshiyi tcsy'>T:测试乙</option>-->
<!--                                            <option value='tester3' title='T:测试丙' data-keys='t:ceshibing tcsb'>T:测试丙</option>-->
<!--                                            <option value='testManager' title='T:测试经理' data-keys='t:ceshijingli tcsjl'>T:测试经理</option>-->
<!--                                            <option value='closed' title='Closed' data-keys='closed c'>Closed</option>-->
<!--                                        </select>-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    <tr>-->
<!--                                        <th>关闭日期</th>-->
<!--                                        <td><input type='text' name='closedDate' id='closedDate' value='' class='form-control form-datetime' autocomplete="off" />-->
<!--                                        </td>-->
<!--                                    </tr>-->
<!--                                    </tbody>-->
<!--                                </table>-->
<!--                            </div>-->
                            <div class='detail'>
                                <div class='detail-title'>其他相关</div>
                                <table class='table table-form'>
                                    <tbody>
                                    <tr class='text-top'>
                                        <th class='thWidth'>相关Bug</th>
                                        <td><a href='/bug-linkBugs-357.html?onlybody=yes' class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'>关联相关Bug</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th></th>
                                        <td>
                                            <ul class='list-unstyled'>
                                                <span id='linkBugsBox'></span>
                                            </ul>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div><script>
    $.initSidebar();
</script>

    <iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>

</main><footer id='footer'>
    <div class="container">
        <ul class='breadcrumb'><li><a href='/my/' >禅道</a>
        </li><li><a href='/qa/' >测试</a>
        </li><li class='active'><a href='/bug-browse-2.html' >企业内部工时管理系统</a>
        </li><li class='active'>编辑Bug</li></ul>    <div id='poweredBy'>
        <small class='muted'><a href='https://api.zentao.net/goto.php?item=aiux' class='link-aiux' target='_blank'>Designed by <strong>艾体验</strong></a></small> &nbsp;
        <a href='https://www.zentao.net' target='_blank'><i class='icon-zentao'></i> 禅道12.5.3</a> &nbsp;
        <a href='https://api.zentao.net/goto.php?item=proversion&from=footer' target='_blank' id='proLink' class='text-important'>专业版 <i class='text-danger icon-pro-version'></i></a> &nbsp;           </div>
    </div>
</footer>
<div id="noticeBox"></div>
<script>
    /* Alert got messages. */
    needPing = false;
    $(function()
    {
        var windowBlur = false;
        if(window.Notification)
        {
            window.onblur  = function(){windowBlur = true;}
            window.onfocus = function(){windowBlur = false;}
        }
        setInterval(function()
        {
            $.get(createLink('message', 'ajaxGetMessage', "windowBlur=" + (windowBlur ? '1' : '0')), function(data)
            {
                if(!windowBlur)
                {
                    $('#noticeBox').append(data);
                    adjustNoticePosition();
                }
                else
                {
                    if(data)
                    {
                        if(typeof data == 'string') data = $.parseJSON(data);
                        if(typeof data.message == 'string') notifyMessage(data);
                    }
                }
            });
        }, 300000);
    })

</script>

<script>$(function()
{
    var page = window.page || '';
    var flow = window.flow;

    $('#subNavbar a[data-toggle=dropdown]').parent().addClass('dropdown dropdown-hover');

    if(page == 'create' || page == 'edit' || page == 'assignedto' || page == 'confirmbug')
    {
        oldProductID = $('#product').val();
    }

    if(window.flow != 'full')
    {
        $('.querybox-toggle').click(function()
        {
            $(this).parent().toggleClass('active');
        });
    }
});

/**
 * Load all fields.
 *
 * @param  int $productID
 * @access public
 * @return void
 */
function loadAll(productID)
{
    if(page == 'create')
    {
        loadProjectTeamMembers(productID);
        setAssignedTo();
    }

    if(typeof(changeProductConfirmed) != 'undefined' && !changeProductConfirmed)
    {
        firstChoice = confirm(confirmChangeProduct);
        changeProductConfirmed = true;    // Only notice the user one time.

        if(!firstChoice)
        {
            $('#product').val(oldProductID);//Revert old product id if confirm is no.
            $('#product').trigger("chosen:updated");
            $('#product').chosen();
            return true;
        }

        loadAll(productID);
    }
    else
    {
        $('#taskIdBox').innerHTML = '<select id="task"></select>';  // Reset the task.
        $('#task').chosen();
        loadProductBranches(productID)
        loadProductModules(productID);
        loadProductProjects(productID);
        loadProductBuilds(productID);
        loadProductplans(productID);
        loadProductStories(productID);
    }
}

/**
 * Load by branch.
 *
 * @access public
 * @return void
 */
function loadBranch()
{
    $('#taskIdBox').innerHTML = '<select id="task"></select>';  // Reset the task.
    $('#task').chosen();
    productID = $('#product').val();
    loadProductModules(productID);
    loadProductProjects(productID);
    loadProductBuilds(productID);
    loadProductplans(productID);
    loadProductStories(productID);
}

/**
 *Load all builds of one project or product.
 *
 * @param  object $object
 * @access public
 * @return void
 */
function loadAllBuilds(object)
{
    if(page == 'resolve')
    {
        oldResolvedBuild = $('#resolvedBuild').val() ? $('#resolvedBuild').val() : 0;
        link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=resolvedBuild&build=' + oldResolvedBuild + '&branch=0&index=0&type=all');
        $('#resolvedBuildBox').load(link, function(){$(this).find('select').chosen()});
    }
    else
    {
        productID = $('#product').val();
        projectID = $('#project').val();

        var buildBox = '';
        if(page == 'edit') buildBox = $(object).closest('.input-group').attr('id');

        if(projectID)
        {
            loadAllProjectBuilds(projectID, productID, buildBox);
        }
        else
        {
            loadAllProductBuilds(productID, buildBox);
        }
    }
}

/**
 * Load all builds of the project.
 *
 * @param  int    $projectID
 * @param  int    $productID
 * @param  string $buildBox
 * @access public
 * @return void
 */
function loadAllProjectBuilds(projectID, productID, buildBox)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    if(page == 'create')
    {
        oldOpenedBuild = $('#openedBuild').val() ? $('#openedBuild').val() : 0;
        link = createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch + '&index=0&needCreate=true&type=all');
        $.get(link, function(data)
        {
            if(!data) data = '<select id="openedBuild" name="openedBuild" class="form-control" multiple=multiple></select>';
            $('#openedBuild').replaceWith(data);
            $('#openedBuild_chosen').remove();
            $('#openedBuild').next('.picker').remove();
            $("#openedBuild").chosen();
            notice();
        })
    }
    if(page == 'edit')
    {
        if(buildBox == 'openedBuildBox')
        {
            link = createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch + '&index=0&needCreate=true&type=all');
            $('#openedBuildBox').load(link, function(){$(this).find('select').chosen()});
        }
        if(buildBox == 'resolvedBuildBox')
        {
            link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=resolvedBuild&build=' + oldResolvedBuild + '&branch=' + branch + '&index=0&type=all');
            $('#resolvedBuildBox').load(link, function(){$(this).find('select').chosen()});
        }
    }
}

/**
 * Load all builds of the product.
 *
 * @param  int    $productID
 * @param  string $buildBox
 * @access public
 * @return void
 */
function loadAllProductBuilds(productID, buildBox)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    if(page == 'create')
    {
        link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch + '&index=0&type=all');
        $.get(link, function(data)
        {
            if(!data) data = '<select id="openedBuild" name="openedBuild" class="form-control" multiple=multiple></select>';
            $('#openedBuild').replaceWith(data);
            $('#openedBuild_chosen').remove();
            $('#openedBuild').next('.picker').remove();
            $("#openedBuild").chosen();
            notice();
        })
    }
    if(page == 'edit')
    {
        if(buildBox == 'openedBuildBox')
        {
            link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch + '&index=0&type=all');
            $('#openedBuildBox').load(link, function(){$(this).find('select').chosen()});
        }
        if(buildBox == 'resolvedBuildBox')
        {
            link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=resolvedBuild&build=' + oldResolvedBuild + '&branch' + branch + '&index=0&type=all');
            $('#resolvedBuildBox').load(link, function(){$(this).find('select').chosen()});
        }
    }
}

/**
 * Load product's modules.
 *
 * @param  int    $productID
 * @access public
 * @return void
 */
function loadProductModules(productID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=bug&branch=' + branch + '&rootModuleID=0&returnType=html&fieldID=&needManage=true');
    $('#moduleIdBox').load(link, function()
    {
        $(this).find('select').chosen()
        if(typeof(bugModule) == 'string') $('#moduleIdBox').prepend("<span class='input-group-addon' style='border-left-width: 1px;'>" + bugModule + "</span>");
    });
}

/**
 * Load product stories
 *
 * @param  int    $productID
 * @access public
 * @return void
 */
function loadProductStories(productID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&branch=' + branch + '&moduleId=0&storyID=' + oldStoryID);
    $('#storyIdBox').load(link, function(){$('#story').chosen();});
}

/**
 * Load projects of product.
 *
 * @param  int    $productID
 * @access public
 * @return void
 */
function loadProductProjects(productID)
{
    required = $('#project_chosen').hasClass('required');
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;

    link = createLink('product', 'ajaxGetProjects', 'productID=' + productID + '&projectID=' + oldProjectID + '&branch=' + branch);
    $('#projectIdBox').load(link, function()
    {
        $(this).find('select').chosen();
        if(required) $(this).addClass('required');
    });
}

/**
 * Load product plans.
 *
 * @param  productID $productID
 * @access public
 * @return void
 */
function loadProductplans(productID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('productplan', 'ajaxGetProductplans', 'productID=' + productID + '&branch=' + branch);
    $('#planIdBox').load(link, function(){$(this).find('select').chosen()});
}

/**
 * Load product builds.
 *
 * @param  productID $productID
 * @access public
 * @return void
 */
function loadProductBuilds(productID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch);

    if(page == 'create')
    {
        $.get(link, function(data)
        {
            if(!data) data = '<select id="openedBuild" name="openedBuild" class="form-control" multiple=multiple></select>';
            $('#openedBuild').replaceWith(data);
            $('#openedBuild_chosen').remove();
            $('#openedBuild').next('.picker').remove();
            $("#openedBuild").chosen();
            notice();
        })
    }
    else
    {
        $('#openedBuildBox').load(link, function(){$(this).find('select').chosen()});
        link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=resolvedBuild&build=' + oldResolvedBuild + '&branch=' + branch);
        $('#resolvedBuildBox').load(link, function(){$(this).find('select').chosen()});
    }
}

/**
 * Load project related bugs and tasks.
 *
 * @param  int    $projectID
 * @access public
 * @return void
 */
function loadProjectRelated(projectID)
{
    if(projectID)
    {
        loadProjectTasks(projectID);
        loadProjectStories(projectID);
        loadProjectBuilds(projectID);
        loadAssignedTo(projectID);
    }
    else
    {
        $('#taskIdBox').innerHTML = '<select id="task"></select>';  // Reset the task.
        loadProductStories($('#product').val());
        loadProductBuilds($('#product').val());
    }
}

/**
 * Load project tasks.
 *
 * @param  projectID $projectID
 * @access public
 * @return void
 */
function loadProjectTasks(projectID)
{
    link = createLink('task', 'ajaxGetProjectTasks', 'projectID=' + projectID + '&taskID=' + oldTaskID);
    $.post(link, function(data)
    {
        if(!data) data = '<select id="task" name="task" class="form-control"></select>';
        $('#task').replaceWith(data);
        $('#task_chosen').remove();
        $('#task').next('.picker').remove();
        $("#task").chosen();
    })
}

/**
 * Load project stories.
 *
 * @param  projectID $projectID
 * @access public
 * @return void
 */
function loadProjectStories(projectID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('story', 'ajaxGetProjectStories', 'projectID=' + projectID + '&productID=' + $('#product').val() + '&branch=' + branch + '&moduleID=0&storyID=' + oldStoryID);
    $('#storyIdBox').load(link, function(){$('#story').chosen();});
}

/**
 * Load builds of a project.
 *
 * @param  int      $projectID
 * @access public
 * @return void
 */
function loadProjectBuilds(projectID)
{
    branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    productID = $('#product').val();
    oldOpenedBuild = $('#openedBuild').val() ? $('#openedBuild').val() : 0;

    if(page == 'create')
    {
        link = createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + "&branch=" + branch + "&index=0&needCreate=true");
        $.get(link, function(data)
        {
            if(!data) data = '<select id="openedBuild" name="openedBuild" class="form-control" multiple=multiple></select>';
            $('#openedBuild').replaceWith(data);
            $('#openedBuild').val(oldOpenedBuild);
            $('#openedBuild_chosen').remove();
            $('#openedBuild').next('.picker').remove();
            $("#openedBuild").chosen();
            notice();
        })
    }
    else
    {
        link = createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=openedBuild&build=' + oldOpenedBuild + '&branch=' + branch);
        $('#openedBuildBox').load(link, function(){$(this).find('select').val(oldOpenedBuild).chosen()});

        oldResolvedBuild = $('#resolvedBuild').val() ? $('#resolvedBuild').val() : 0;
        link = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=resolvedBuild&build=' + oldResolvedBuild + '&branch=' + branch);
        $('#resolvedBuildBox').load(link, function(){$(this).find('select').val(oldResolvedBuild).chosen()});
    }
}

/**
 * Set story field.
 *
 * @param  moduleID $moduleID
 * @param  productID $productID
 * @param  storyID $storyID
 * @access public
 * @return void
 */
function setStories(moduleID, productID, storyID)
{
    var branch = $('#branch').val();
    if(typeof(branch) == 'undefined') branch = 0;
    link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&branch=' + branch + '&moduleID=' + moduleID + '&storyID=' + storyID);
    $.get(link, function(stories)
    {
        if(!stories) stories = '<select id="story" name="story" class="form-control"></select>';
        $('#story').replaceWith(stories);
        $('#story_chosen').remove();
        $('#story').next('.picker').remove();
        $("#story").chosen();
    });
}

/**
 * Load product branches.
 *
 * @param  int $productID
 * @access public
 * @return void
 */
function loadProductBranches(productID)
{
    $('#branch').remove();
    $('#branch_chosen').remove();
    $('#branch').next('.picker').remove();
    $.get(createLink('branch', 'ajaxGetBranches', "productID=" + productID), function(data)
    {
        if(data)
        {
            $('#product').closest('.input-group').append(data);
            $('#branch').css('width', page == 'create' ? '120px' : '65px');
            $('#branch').chosen();
        }
    })
}


var oldAssignedToTitle = $("#assignedTo").find("option:selected").text();
var oldAssignedTo      = $("#assignedTo").find("option:selected").val();

/**
 * Load team members of the project as assignedTo list.
 *
 * @param  int     $projectID
 * @access public
 * @return void
 */
function loadAssignedTo(projectID, selectedUser)
{
    selectedUser = (typeof selectedUser == undefined) ? '' : $('#assignedTo').val();
    link = createLink('bug', 'ajaxLoadAssignedTo', 'projectID=' + projectID + '&selectedUser=' + selectedUser);
    $.get(link, function(data)
    {
        var defaultOption = '<option title="' + oldAssignedToTitle + '" value="' + oldAssignedTo + '" selected="selected">' + oldAssignedToTitle + '</option>';
        $('#assignedTo_chosen').remove();
        $('#assignedTo').next('.picker').remove();
        $('#assignedTo').replaceWith(data);
        var defaultAssignedTo = $('#assignedTo').val();
        if(defaultAssignedTo !== oldAssignedTo && selectedUser == '') $('#assignedTo').append(defaultOption);
        $('#assignedTo').chosen();
    });
}

/**
 * notice for create build.
 *
 * @access public
 * @return void
 */
function notice()
{
    $('#buildBoxActions').empty().hide();
    if($('#openedBuild').find('option').length <= 1)
    {
        var html = '';
        if($('#project').length == 0 || $('#project').val() == '')
        {
            var branch = $('#branch').val();
            if(typeof(branch) == 'undefined') branch = 0;
            var link = createLink('release', 'create', 'productID=' + $('#product').val() + '&branch=' + branch);
            if(typeof(flow) != 'undefined' && flow == 'onlyTest') link = createLink('build', 'create','projectID=' + $('#product').val());
            link += config.requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';
            html += '<a href="' + link + '" data-toggle="modal" data-type="iframe" style="padding-right:5px">' + createBuild + '</a> ';
            html += '<a href="javascript:loadProductBuilds(' + $('#product').val() + ')">' + refresh + '</a>';
        }
        else
        {
            projectID = $('#project').val();
            html += '<a href="' + createLink('build', 'create','projectID=' + projectID) + '" target="_blank" style="padding-right:5px">' + createBuild + '</a> ';
            html += '<a href="javascript:loadProjectBuilds(' + projectID + ')">' + refresh + '</a>';
        }
        var $bba = $('#buildBoxActions');
        if($bba.length)
        {
            $bba.html(html);
            $bba.show();
        }
        else
        {
            if($('#buildBox').closest('tr').find('td').size() > 1)
            {
                $('#buildBox').closest('td').next().attr('id', 'buildBoxActions');
                $('#buildBox').closest('td').next().html(html);
            }
            else
            {
                html = "<td id='buildBoxActions'>" + html + '</td>';
                $('#buildBox').closest('td').after(html);
            }
        }
    }
}
$(function()
{
    loadModuleRelated();
});

/**
 * Set duplicate field.
 *
 * @param  string $resolution
 * @access public
 * @return void
 */
function setDuplicate(resolution)
{
    if(resolution == 'duplicate')
    {
        $('#duplicateBugBox').show();
    }
    else
    {
        $('#duplicateBugBox').hide();
    }
}

/**
 * Get story or task list.
 *
 * @param  string $module
 * @access public
 * @return void
 */
function getList(module)
{
    productID = $('#product').val();
    projectID = $('#project').val();
    storyID   = $('#story').val();
    taskID    = $('#task').val();
    if(module == 'story')
    {
        link = createLink('search', 'select', 'productID=' + productID + '&projectID=' + projectID + '&module=story&moduleID=' + storyID);
        $('#storyListIdBox a').attr("href", link);
    }
    else
    {
        link = createLink('search', 'select', 'productID=' + productID + '&projectID=' + projectID + '&module=task&moduleID=' + taskID);
        $('#taskListIdBox a').attr("href", link);
    }
}

/**
 * load stories of module.
 *
 * @access public
 * @return void
 */
function loadModuleRelated()
{
    moduleID  = $('#module').val();
    productID = $('#product').val();
    storyID   = $('#story').val();
    setStories(moduleID, productID, storyID);
}

</script>
<div class='hidden'><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_4553360'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D4553360' type='text/javascript'%3E%3C/script%3E"));</script></div>
</body>
</html>
